SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO


CREATE PROCEDURE dbo.[DnnProduct_UpdateModule]
	@ModuleId               int,
	@ContentItemID			int,
	@AllTabs                bit, 
	@StartDate              datetime,
	@EndDate                datetime,
	@InheritViewPermissions	bit,
	@IsDeleted              bit,
	@LastModifiedByUserID  	int
	
AS
UPDATE	dbo.DnnProduct_Modules
	SET		
			ContentItemID = @ContentItemID,
			AllTabs = @AllTabs,
			StartDate = @StartDate,
			EndDate = @EndDate,
			InheritViewPermissions = @InheritViewPermissions,
			IsDeleted = @IsDeleted,
			LastModifiedByUserID = @LastModifiedByUserID,
			LastModifiedOnDate = getdate()
WHERE  ModuleId = @ModuleId
GO
